package org.ytor.core.sysapi.dict.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;
import org.ytor.core.model.BaseResp;
import org.ytor.core.sysapi.dict.model.SysDict;

import java.time.LocalDateTime;

/**
 * created by yangtong on 2025/4/8 16:49:02
 * <br/>
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SysDictResp extends BaseResp<SysDict, String> {

    private String id;

    /**
     * 字典名称
     */
    private String dictName;

    /**
     * 字典编码，唯一
     */
    private String dictCode;

    /**创建时间*/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**创建人*/
    private String createBy;

    /**更新时间*/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /**更新人*/
    private String updateBy;

    /**
     * 序号
     */
    private Integer sortOrder;

    /**数据备注*/
    private String remark;
}
